﻿<!DOCTYPE html>
<html lang="en">
<head>
    <title>宾果高校</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/swiper.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/sweetalert.min.css" />
    <script src="../js/jquery-1.12.2.min.js"></script>
    <script src="../js/swiper.min.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/angular.min.js"></script>
    <script src="../js/Controller.js"></script>
    <script src="../js/sweetalert.min.js"></script>
</head>
<body id="community-index">
    <div id="searchPage"></div>
    <div class="main">
        <div class="wrap clearfix">
            <div class="banner">
                <div class="swiper-container">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide swiper-block1"></div>
                        <div class="swiper-slide swiper-block2"></div>
                        <div class="swiper-slide swiper-block3"></div>
                    </div>
                    <div class="swiper-pagination"></div>
                    <div class="swiper-button-prev"></div>
                    <div class="swiper-button-next"></div>
                </div>
                <div class="search">
                    <form action="" class="form-inline">
                        <div class="form-group input-group">
                            <input type="text" style="width: 500px;" placeholder="搜索赞助金额、地区、活动类型" class="form-control"><span class="input-group-btn">
                                <button type="submit" class="btn btn-default">搜索</button>
                            </span>
                        </div>
                    </form>
                </div>
            </div>
            <div class="clearfix">
                <!--<div class="leftbar">
                    <hr>
                    <div class="newest-sponsor-title clearfix">
                        <h2>最新获得赞助</h2><a href="./enterprise-sponsor.html">MORE</a>
                    </div>
                    <div class="newest-sponsor">
                        <div class="newest-sponsor-header"><a href="">周杰伦演唱会</a></div>
                        <div><span>社团名称：学生会</span></div>
                        <div><span>社团地区：广东省-广州市-广州大学</span></div>
                        <div><span>赞助企业：可口可乐公司</span><span>赞助金额：5000</span></div>
                        <div><span>合作时间：2016/8/20 21:03:55</span></div>
                    </div>
                    <div class="newest-sponsor">
                        <div class="newest-sponsor-header"><a href="">周杰伦演唱会</a></div>
                        <div><span>社团名称：学生会</span></div>
                        <div><span>社团地区：广东省-广州市-广州大学</span></div>
                        <div><span>赞助企业：可口可乐公司</span><span>赞助金额：5000</span></div>
                        <div><span>合作时间：2016/8/20 21:03:55</span></div>
                    </div>
                </div>-->
                <div class="mainbox area-advert" ng-app="myApp">
                    <div class="togglebar">
                        <ul class="nav nav-tabs nav-justified">
                            <li class="active"><a id="showBox1">企业最新赞助</a></li>
                            <li><a id="showBox2">社团最新活动</a></li>
                        </ul>
                    </div>
                    <div id="box1" ng-controller="latestAssocCtrl">
                        <ul>
                            <li ng-repeat="x in names" class="advert-item clearfix">
                                <div class="advert-leftbox">
                                    <div class="top"> <a href="detail.html?id={{x.ProjectNO}}" class="top-title top-title">{{x.ProjectName}}</a><span class="time">{{x.CreateTime | date:'yyyy-MM-dd'}}</span></div>
                                    <div class="bottom">
                                        <p>{{x.Company.Address}}</p>
                                    </div>
                                </div>
                                <div class="advert-rightbox">
                                    <div class="top"><span class="top-title">{{x.Company.CompanyName}}</span></div>
                                    <div class="bottom"><span>赞助金额:</span><span>{{x.Money}}</span></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                    <div id="box2" ng-controller="latestAssocCtrl">
                        <ul>
                            <li ng-repeat="x in names" class="advert-item clearfix">
                                <div class="advert-leftbox">
                                    <div class="top"> <a href="activity-detail.html?id={{x.ProjectNO}}" class="top-title top-title">{{x.ProjectName}}</a><span class="time">{{x.CreateTime | date:'yyyy-MM-dd'}}</span></div>
                                    <div class="bottom">
                                        <p>{{x.Association.ProvinceName +'-' +x.Association.CityName}}</p>
                                    </div>
                                </div>
                                <div class="advert-rightbox">
                                    <div class="top"><span class="top-title">{{x.Association.Name}}</span></div>
                                    <div class="bottom"><span>点赞数</span><span>{{x.LikedCount}}</span></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
<script>

    fn.swiper();

    $("#searchPage").load("header.html", function () {
        SetCss("Index");
    });
</script>